-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors due to closure on search by course id endpoints #214
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to verify that all problems below are fixed on Android.
- course table
- fix unknown charaters in english course table ("Class Meeting" shows empty details instead of "tofu"s)
- course extra info
- fix semester year and phase parsers (able to change and read other semesters correctly)
- fix unable to get course category symbol
- rewrite courseExtraInfo parser
- impacts relate to changes above
- unable to fetch grade and scores
- unable to summary score properly
- no color variety of chinese course table
- unable to check details in chinese course table
- feature removal
- remove classmate node parser
- remove classmate searching feature widgets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two exists bugs:
- [Critical] When the user not complete the final education survay(期末教學評量)will cause the application crash.
- [Critical] When some course not have sallybus href, it will cause the score calculate system crash.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I finally made it work on iOS, yay!
After merging into the master branch on my machine, I was able to bypass the force-update dialog.
Since the student ID input box in the course table is now read-only, users of the previous version who tried using others' IDs will not be able to change it back. Switching the language to English and then back again solves this issue.
I also discovered that the score lookup is failing again. It reports to the normal user that there are no scores yet:
But in my debug build for Android, I encounter a RangeError
:
Co-authored-by: Chenghsuan Ho <[email protected]>
Co-authored-by: Chenghsuan Ho <[email protected]>
Co-authored-by: Chenghsuan Ho <[email protected]>
Co-authored-by: Chenghsuan Ho <[email protected]>
…arser_on_couse_id_error
Description
Over all: this pr fix impacts and errors due to service policy changes on school server endpoints which closes the functionality to search course extra information by course id and search course table by student id
use utf-8 encoding instead of big5 in requests.
The title String of the first course table was stored seperately in its element,
but it currently stores all the information in a row,
so the RegExp "studentSemesterDetailFilter" is used to filter out only the number parts
and the List "studentSemesterDetails" should consist of three numerical values (ex: [110310144, 112, 1])
The tasks of search course extra information by course id contain retriving course category symbols which are crutial in functionality of summarizing credits and is currently not working properly because its not there anymore, so i made an additional request to the href where the "課程大綱" is placed and search for course category symbol there instead.
The color variety of course table and fetch grade and scores functionalities rely on courseExtraInfo.course.id, and since the course id on the second course table is no longer wrapped in
<a>
tag, so currently we parse it from the<td>
tag instead.Implementation
Testing Instructions
Additional Notes